package com.yf.tz.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Jul 20 16:20:50 CST 2020
 */
@Getter
public enum MallOrderOrderStatusEnum {


    NEW(0, "新订单"),


    DELIVERING(1, "配货中"),

    DELIVERED(2, "已发货"),

    CANCELED(3, "已取消");

    int index;
    String value;

    MallOrderOrderStatusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallOrderOrderStatusEnum.values()[idx].getValue();
    }

}
